import java.math.BigInteger;
import java.security.MessageDigest;

/**
 * <p>
 *
 * </p>
 *
 * @author KANLEI
 * @email freefree.me@qq.com
 * @create 2020-10-28
 */
public class Demo {
    public static void main(String[] args) {
        try {
            MessageDigest digest = MessageDigest.getInstance("SHA-256");
            byte[] bytes = digest.digest("111".getBytes());
            // f6e0a1e2ac41945a9aa7ff8a8aaa0cebc12a3bcc981a929ad5cf810a090e11ae
            System.out.println(new BigInteger(1, bytes).toString(16));

            System.out.println("+++++++++++++++++++++++");
            System.out.println(new String(new char[5]).replace("\0","0"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
